package com.hsmpay.mobile.service.user;

import com.hsmpay.common.service.BaseService;
import com.hsmpay.mobile.pojo.user.ActivationCode;

import java.io.Serializable;

/**
 * 用户激活码业务接口 activationCodeService
 *
 * @param <Entity>
 * @param <Query>
 * @author 颜铃璋
 *         建立时间：2012-11-22
 */
public interface ActivationCodeService<Entity extends Serializable, Query extends Object> extends BaseService<Entity, Query> {
    /**
     * 注册时 根据激活码 查询激活码对象
     *
     * @param code
     * @param terminalTypeId
     * @param roleId
     * @return
     * @throws Exception
     */
    public ActivationCode searchACodeToRegister(String code, Long terminalTypeId, Long roleId) throws Exception;

}
